<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
<body>
<h1>用户登录</h1>
<form method="post" th:action="@{/login}">
    用户名:<input name="username" type="text" placeholder="用户名"/><br>
    密&nbsp;&nbsp;&nbsp;码:<input name="password" type="password" placeholder="密码"/><br>
    验证码:<input name="imageCode" type="text" placeholder="验证码"/><br>
    <img th:onclick="src='/code/image?'+Math.random()" th:src="@{/code/image}" alt="验证码"/><br>
    <input type="submit" value="登录"/>
</form>
</body>
</html>